@extends('layout.adminlayout')
@section('css')
<script src="/admin/js/metisMenu.min.js"></script>
<script src="/admin/js/custom.js"></script>
<link href="/admin/css/custom.css" rel="stylesheet">
@endsection
@section('content')
<div class="tables">
   <div class="table-responsive bs-example widget-shadow">
      <h4>代理商列表 :</h4>
      <table class="table table-bordered" >
         <thead>
            <!-- <tr>
               <form action="/admin/trace" method="get">
                  每页显示:
                  <select name="conut">
                     <option value="">10</option>
                     <option value="">20</option>
                     <option value="">50</option>
                  </select>条
                  <input type="text" name="" />
                  <input type="submit" value="搜索" />
               </form> 
            </tr>
 -->         
            <tr>
               <th style="text-align: center">代理商编号</th>
               <th style="text-align: center">代理商名称</th>
            </tr>
         </thead>
         <tbody>
         @if(!null==$data)
            @foreach($data as $v)
               <tr> 
                  <th scope="row" style="text-align: center">{{$v['id']}}</th>
                  <td>{!! $v['agent_name'] !!}</td>
               </tr>
            @endforeach
         @endif
         </tbody> 
      </table>
   </div>
</div>
@endsection